package cn.eng.org.service.impl;

import cn.eng.basic.service.impl.BaseServiceImpl;
import cn.eng.org.domain.Employee;
import cn.eng.org.mapper.EmployeeMapper;
import cn.eng.org.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@SuppressWarnings("all")
public class EmployeeServiceImpl extends BaseServiceImpl<Employee> implements IEmployeeService {
    @Autowired
    private EmployeeMapper employeeMapper;

    /**
     * 根据店铺ip查询所有的员工
     * @param shopId
     * @return
     */
    @Override
    public List<Employee> list(Long shopId) {
        return employeeMapper.list(shopId);
    }
}
